package com.beibojd.dao;

import com.beibojd.pojo.Order;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @Author: 洪耀荣
 * @Date: 2021-06-23 18:02:14
 */
public interface OrderMapper extends Mapper<Order> {
    @Select("select max(orderid) from `orderall`")
    Integer maxOrder();
    @Select("select * from `orderall` where orderid = #{id}")
    List<Order> selectById(Integer id);
}
